home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!shadow!xmsb
- From: xmsb@shadow.borland.com (Maurice S. Barnum)
- Newsgroups: comp.lang.c++
- Subject: Re: Fahrenheight to Celsius?
- Date: 28 Feb 96 18:15:41 GMT
- Organization: Borland Intl
- Message-ID: <xmsb.825531341@shadow>
- References: <4fvthq$2bl@newserv.agcs.com> <4fra3q$ddt@newsbf02.news.aol.com> <1996Feb26.060213.23285@lafn.org> <4h1v08$eks@druid.borland.com>
- NNTP-Posting-Host: shadow.borland.com
-
- pete@borland.com (Pete Becker) writes:
-
- >In article <1996Feb26.060213.23285@lafn.org>, an234@lafn.org says...
- >>
- >>F = C*(9/5) +32
- >>C = (F-32)*(5/9)
-
- >He was better off without this answer, which is wrong.
-
- my favorite conversion equations, which i learned from
- reading an article by isaac asimov, is not only simpler,
- but avoids having to worry as much about the "obvious"
- problem when written as C++:
-
- F = (C + 40) / 1.8 - 40
- C = (F + 40) * 1.8 - 40
-
- for reasons i've never understood, these are not the
- equations one will find in most books.
-
- --xmsb
- xmsb@borland.com
-